package users

import (
	"context"

	"shenmawl/api/user/v1"
)

func (c *ControllerV1) GetUserList(ctx context.Context, req *v1.GetUserListReq) (res *v1.GetUserListRes, err error) {
	userList, count, err := c.users.UserList(ctx)
	return &v1.GetUserListRes{
		Count: count,
		List:  userList,
	}, nil
}
